import pytest


@pytest.mark.parametrize("input,expected", [("1+1", 2), ("1+2", 3), ("1+1", 4)])
def test_eval(input, expected):
    assert eval(input) == expected


# 修饰器放在测试类上
@pytest.mark.parametrize("name,technology",[('韧','测试开发'),('全栈测试笔记','性能测试')])  # 列表嵌套元组
class TestQzcsbj:
    def test_case(self, name, technology):
        print(f"name={name}, technology={technology}")